package logic.bean;

import java.io.Serializable;
import java.util.List;


/**
 * @author xuzhijun
 * @date 2015年4月7日上午10:43:13
 *       订单详情信息
 */
public class OrderDetailInfo
        implements
        Serializable
{
	/**
	 * 
	 */
	private static final long      serialVersionUID = 1L;
	private int                    orderId;
	private int                    actualMoney;          //实际付款金额   totalMoney- freeMoney
	private long                   commentTime;          //评论时间，long类型
	private long                   createTime;
	private long                   deliverTime;          //发货时间，long类型
	private long                   receiveConfirmTime;   //收获确认时间，long类型
	private long                   payTime;              //订单付款时间，long类型
	private UserAddressInfo        deliveryAddress;
	private int                    expressMoney;         //快递费用，int类型，单位分
	private int                    freeMoney;            //优惠金额 
	private int                    delivelyTimeType;     //订单总金额
	private int                    totalMoney;
	private List<OrderDetailColum> goodsList;
	private String                 orderSerial;          //订单号
	private String                 aliPayOrderNo;        //支付宝交易号
	private String                 remark;               //备注
	private String                 status;               //订单状态，String类型  0=下单未付款 1=付款成功（待发货） 2=已发货（待收获）3=待评价 4=交易完成 5=交易取消
	private String                 invoiceAccount;       //发票抬头,String类型
	private String                 invoiceCode;          //发票号码,String类型
	private String                 invoiceContent;       //"餐饮",//发票内容
	private int                    invoiceType;          // int类型,0==不需要开发票；1==个人；2==公司
	private String                 statusCause;          //订单状态说明，String类型，如订单关闭的原因说明
	                                                      
	public OrderDetailInfo() {
	}
	
	public int getOrderId() {
		return this.orderId;
	}
	
	public void setOrderId(int orderId) {
		this.orderId = orderId;
	}
	
	public int getActualMoney() {
		return this.actualMoney;
	}
	
	public void setActualMoney(int actualMoney) {
		this.actualMoney = actualMoney;
	}
	
	public long getCommentTime() {
		return this.commentTime;
	}
	
	public void setCommentTime(long commentTime) {
		this.commentTime = commentTime;
	}
	
	public long getCreateTime() {
		return this.createTime;
	}
	
	public void setCreateTime(long createTime) {
		this.createTime = createTime;
	}
	
	public long getDeliverTime() {
		return this.deliverTime;
	}
	
	public void setDeliverTime(long deliverTime) {
		this.deliverTime = deliverTime;
	}
	
	public long getReceiveConfirmTime() {
		return this.receiveConfirmTime;
	}
	
	public void setReceiveConfirmTime(long receiveConfirmTime) {
		this.receiveConfirmTime = receiveConfirmTime;
	}
	
	public long getPayTime() {
		return this.payTime;
	}
	
	public void setPayTime(long payTime) {
		this.payTime = payTime;
	}
	
	public UserAddressInfo getDeliveryAddress() {
		return this.deliveryAddress;
	}
	
	public void setDeliveryAddress(UserAddressInfo deliveryAddress) {
		this.deliveryAddress = deliveryAddress;
	}
	
	public int getExpressMoney() {
		return this.expressMoney;
	}
	
	public void setExpressMoney(int expressMoney) {
		this.expressMoney = expressMoney;
	}
	
	public int getFreeMoney() {
		return this.freeMoney;
	}
	
	public void setFreeMoney(int freeMoney) {
		this.freeMoney = freeMoney;
	}
	
	public int getDelivelyTimeType() {
		return this.delivelyTimeType;
	}
	
	public void setDelivelyTimeType(int delivelyTimeType) {
		this.delivelyTimeType = delivelyTimeType;
	}
	
	public int getTotalMoney() {
		return this.totalMoney;
	}
	
	public void setTotalMoney(int totalMoney) {
		this.totalMoney = totalMoney;
	}
	
	public List<OrderDetailColum> getGoodsList() {
		return this.goodsList;
	}
	
	public void setGoodsList(List<OrderDetailColum> goodsList) {
		this.goodsList = goodsList;
	}
	
	public String getOrderSerial() {
		return this.orderSerial;
	}
	
	public void setOrderSerial(String orderSerial) {
		this.orderSerial = orderSerial;
	}
	
	public String getRemark() {
		return this.remark;
	}
	
	public void setRemark(String remark) {
		this.remark = remark;
	}
	
	public String getStatus() {
		return this.status;
	}
	
	public void setStatus(String status) {
		this.status = status;
	}
	
	public String getInvoiceAccount() {
		return this.invoiceAccount;
	}
	
	public void setInvoiceAccount(String invoiceAccount) {
		this.invoiceAccount = invoiceAccount;
	}
	
	public String getInvoiceCode() {
		return this.invoiceCode;
	}
	
	public void setInvoiceCode(String invoiceCode) {
		this.invoiceCode = invoiceCode;
	}
	
	public String getInvoiceContent() {
		return invoiceContent;
	}

	public void setInvoiceContent(String invoiceContent) {
		this.invoiceContent = invoiceContent;
	}

	public int getInvoiceType() {
		return this.invoiceType;
	}
	
	public void setInvoiceType(int invoiceType) {
		this.invoiceType = invoiceType;
	}
	
	public String getStatuString() {
		String str = null;
		switch (Integer.getInteger(this.status)) {
			case 0:
				str = "未付款";
				break;
			case 1:
				str = "付款成功";
				break;
			case 2:
				str = "已发货";
				break;
			case 3:
				str = "待评价";
				break;
			case 4:
				str = "交易完成";
				break;
			case 5:
				str = "交易取消";
				break;
			default:
				break;
		}
		return str;
	}
	
	public String getStatusCause() {
		return statusCause;
	}
	
	public void setStatusCause(String statusCause) {
		this.statusCause = statusCause;
	}

	public String getAliPayOrderNo() {
	    return aliPayOrderNo;
    }

	public void setAliPayOrderNo(String aliPayOrderNo) {
	    this.aliPayOrderNo = aliPayOrderNo;
    }
}
